#pragma once
#include "XFtpTask.h"
class XFtpRETR :public XFtpTask
{
public:
    XFtpRETR();
    ~XFtpRETR();
    virtual void parse(const std::string &type, const std::string &msg);
    virtual void write(bufferevent *bev);
    virtual void handleEvent(bufferevent *bev, short what);
    virtual void disconnectDataChannel();
private:
    void triggerSend(bufferevent *bev);
private:
    FILE *mFd = nullptr;
};

